package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TOperationMapper;
import com.ruoyi.system.domain.TOperation;
import com.ruoyi.system.service.ITOperationService;

/**
 * 操作记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class TOperationServiceImpl implements ITOperationService 
{
    @Autowired
    private TOperationMapper tOperationMapper;

    /**
     * 查询操作记录
     * 
     * @param oid 操作记录主键
     * @return 操作记录
     */
    @Override
    public TOperation selectTOperationByOid(Long oid)
    {
        return tOperationMapper.selectTOperationByOid(oid);
    }

    /**
     * 查询操作记录列表
     * 
     * @param tOperation 操作记录
     * @return 操作记录
     */
    @Override
    public List<TOperation> selectTOperationList(TOperation tOperation)
    {
        return tOperationMapper.selectTOperationList(tOperation);
    }

    /**
     * 新增操作记录
     * 
     * @param tOperation 操作记录
     * @return 结果
     */
    @Override
    public int insertTOperation(TOperation tOperation)
    {
        return tOperationMapper.insertTOperation(tOperation);
    }

    /**
     * 修改操作记录
     * 
     * @param tOperation 操作记录
     * @return 结果
     */
    @Override
    public int updateTOperation(TOperation tOperation)
    {
        return tOperationMapper.updateTOperation(tOperation);
    }

    /**
     * 批量删除操作记录
     * 
     * @param oids 需要删除的操作记录主键
     * @return 结果
     */
    @Override
    public int deleteTOperationByOids(Long[] oids)
    {
        return tOperationMapper.deleteTOperationByOids(oids);
    }

    /**
     * 删除操作记录信息
     * 
     * @param oid 操作记录主键
     * @return 结果
     */
    @Override
    public int deleteTOperationByOid(Long oid)
    {
        return tOperationMapper.deleteTOperationByOid(oid);
    }
}
